package org.example;

import org.springframework.stereotype.Service;

/**
 * @auther zzyy
 * @create 2023-12-21 17:30
 */
@Service
public class PayServiceImpl implements PayService {


    @Override
    public String add() {
        return "payMapper.insertSelective(pay)";
    }

    @Override
    public String delete() {
        return "payMapper.deleteByPrimaryKey(id)";
    }

    @Override
    public String update() {
        return "payMapper.updateByPrimaryKeySelective(pay)";
    }

    @Override
    public String getById() {
        return "payMapper.selectByPrimaryKey(id)";
    }

    @Override
    public String getAll() {
        return "payMapper.selectAll()";
    }
}
